/*
package com.aaa.come.service.impl;

import com.aaa.come.entity.OutorderDetail;
import com.aaa.come.mapper.OutorderDetailMapper;
import com.aaa.come.mapper.OutorderMapper;
import com.aaa.come.service.OutorderDetailService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

*/
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author aaa
 * @since 2020-11-26
 *//*

@Service
public class OutorderDetailServiceImpl extends ServiceImpl<OutorderDetailMapper, OutorderDetail> implements OutorderDetailService {

    @Autowired
    private OutorderDetailMapper outorderDetailMapper;

    @Override
    public Page<OutorderDetail> findPageOutorderDetail(Integer page, Integer size, Integer pid) {
        Page<OutorderDetail> pageinfo=new Page<>(page,size);
        QueryWrapper<OutorderDetail> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("pid",pid);
        return outorderDetailMapper.selectPage(pageinfo,queryWrapper);
    }

    @Override
    public boolean findById(String commoditybar) {
        QueryWrapper<OutorderDetail> queryWrapper=new QueryWrapper<>();
        queryWrapper.like("commoditybar",commoditybar);
        Integer integer = outorderDetailMapper.selectCount(queryWrapper);
        return integer == 0;
    }

    @Override
    public boolean updateOutorderDetail(OutorderDetail outorderDetail) {
        QueryWrapper<OutorderDetail> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("commoditybar",outorderDetail.getCommoditybar());
        int update = outorderDetailMapper.update(outorderDetail, queryWrapper);
        return update!=0;
    }
}
*/
